using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter40
{
	/// <summary>
	/// Example05: The Wavelength of an Electron
	/// Calculate the de Broglie wavelength for an electron   
	/// moving at 1.00 \times 10^7 m/s.
	/// </summary>
	public class Example05
	{
		public Example05()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			L.Mass m = new L.Mass();
			m.kg = L.Constant.ElectronMass;
			L.Velocity v = new L.Velocity();
			v.X = 1.0E7;
			L.Momentum p = new L.Momentum(m,v);
			double length 
				= L.QuantumPhysics.deBroglieWavelength(p);
			result+=Convert.ToString(length);
		}
	}
}
